package com.heu.blood.match.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.heu.blood.match.entity.BloodInformationEntity;
import com.heu.blood.storge.entity.BloodInStorgeEntity;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString(callSuper = true)
public class BloodInformationEntityVo extends BloodInformationEntity implements Serializable {

    /**
     * 入库时间的左边界
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 入库时间的右边界
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
